package com.bub.pay.outer.redis.jpush;

import cn.jpush.api.JPushClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JPushConfig {

	@Autowired
	private JPushProperties jPushProperties;

	@Bean(name = "jPushClient")
	public JPushClient createJPushClient(){
		return new JPushClient(jPushProperties.getMasterSecret(),jPushProperties.getAppKey());
	}
}
